import httpRequest from '@/http/httpRequest'

// 获取加工批次列表
export const getList = (data) => {
  return httpRequest.post('/processing-batch/list', data)
}

// 条件查询加工批次
export const getByCondition = (data) => {
  return httpRequest.post('/processing-batch/get', data)
}

// 保存或更新加工批次
export const save = (data) => {
  return httpRequest.post('/processing-batch/save', data)
}

// 删除加工批次
export const deleteBatch = (id) => {
  return httpRequest.delete(`/processing-batch/delete/${id}`)
}

// 获取批次号列表
export const getBatchNo = () => {
  return httpRequest.get('/processing-batch/getBatchNo')
}

// 批量生成二维码
export const generateQRCodesBatch = (batchIds) => {
  return httpRequest.get('/back/qrcode/generate/batch', {
    params: { batchIds: batchIds.join(',') }
  })
} 